package com.titaniume.ping;

import redis.clients.jedis.Jedis;

/**
 * @program: redis-study
 * @description:
 * @author: titaniume
 * @create: 2022-01-12 10:39
 */
public class TestPing {

    public static void main(String[] args) {

        //1.new Jedis 对象即可
        Jedis jedis = new Jedis("127.0.0.1", 6379);
        //jedis 所有的命令就是我们之前学习的所有指令
        System.out.println(jedis.ping());
    }
}